<table class="workflow-list-table table-list table" cellspacing=0 >
<?if(is_array($records )){?>
  <tr>
    <th>名称</th>
    <th>工作流</th>
    <th>申请表</th>
    <th>创建</th>
    <th>编辑</th>
    <th>
      操作
    </th>
  </tr>
<?foreach ($records as $r ){?>
  <tr>
    <td><?=$r['title']?></td>
    <td><?=$r['workflow']?></td>
    <td><?=$r['doc']?></td>
    <td><?=$r['created']?></td>
    <td><?=$r['edited']?></td>
    <td>
      <a href="/workflow/view/<?=$r['id']?>" >查看</a>
      <a href="/workflow/edit/<?=$r['id']?>" >编辑</a> 
    </td>
  </tr>
<?  }
}?>
</table>
<?=$pagination?>